/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.com.fatecpg;

import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;

/**
 * @author Fatec
 */
public class CalculadoraTrabalhistaSimples extends MIDlet implements CommandListener{

    private boolean midletPaused = false;
    //<editor-fold defaultstate="collapsed" desc=" Generated Fields ">//GEN-BEGIN:|fields|0|
    private Command exitCommand;
    private Command salLiquidoCommand;
    private Command backCommand;
    private Command backCommand1;
    private Command salBrutoCommand;
    private Command backCommand2;
    private Command fgtsCommand;
    private Command inssCommand;
    private Command backCommand3;
    private Command decTerceiroCommand;
    private Command backCommand4;
    private Command backCommand5;
    private Command feriasCommand;
    private Command backCommand6;
    private Command horaExtraCommand;
    private Command calcularLiquidoCommand;
    private Command calcularBrutoCommand;
    private Command calcularFGTSCommand;
    private Command calcularINSSCommand;
    private Command calcularDecimoCommand;
    private Command sobreCommand;
    private Command calcularFeriasCommand;
    private Command calcularHoraExtraCommand;
    private Form formPrincipal;
    private StringItem homeBannerStringItem;
    private ImageItem homeBannerImageItem;
    private Form formSalarioLiquido;
    private TextField descontosTextField;
    private Spacer spacer;
    private StringItem salLiquidoStringField;
    private TextField salBrutoTextField;
    private StringItem descontosStringField;
    private Form formSalarioBruto;
    private TextField salLiquidoDesTextField;
    private Spacer spacer1;
    private TextField descontosBrutoTextField;
    private StringItem salBrutoDesTextField;
    private StringItem outrosDescontosBrutoTextField;
    private StringItem descontosINSSBrutoStringItem;
    private Form formFGTS;
    private TextField salLiquidoFGTSTextField;
    private StringItem fgtsStringItem;
    private TextField mesesTextField;
    private Spacer spacer3;
    private Form formINSS;
    private Spacer spacer2;
    private StringItem taxaINSSStringItem;
    private TextField salBrutoINSSTextField;
    private StringItem descontarINSSStringItem;
    private Form formDecimoTerceiro;
    private StringItem decimoFinalItem;
    private Spacer spacer4;
    private TextField mesesTrabalhadosDecimoField;
    private TextField salarioBrutoDecimoField;
    private StringItem parcelasDecimoItem;
    private StringItem parcelaUnicaItem;
    private Form formFerias;
    private TextField salBrutoFeriasTextField;
    private StringItem valorFeriasStringItem;
    private Spacer spacer6;
    private Form formHoraExtra;
    private StringItem horasReceberStringItem;
    private TextField horasExtrasTextField;
    private Spacer spacer5;
    private TextField salarioBaseTextField;
    private Image image;
    //</editor-fold>//GEN-END:|fields|0|

    /**
     * The CalculadoraTrabalhistaSimples constructor.
     */
    public CalculadoraTrabalhistaSimples() {
    }

    //<editor-fold defaultstate="collapsed" desc=" Generated Methods ">//GEN-BEGIN:|methods|0|
    //</editor-fold>//GEN-END:|methods|0|
    //<editor-fold defaultstate="collapsed" desc=" Generated Method: initialize ">//GEN-BEGIN:|0-initialize|0|0-preInitialize
    /**
     * Initilizes the application.
     * It is called only once when the MIDlet is started. The method is called before the <code>startMIDlet</code> method.
     */
    private void initialize() {//GEN-END:|0-initialize|0|0-preInitialize
        // write pre-initialize user code here
//GEN-LINE:|0-initialize|1|0-postInitialize
        // write post-initialize user code here
    }//GEN-BEGIN:|0-initialize|2|
    //</editor-fold>//GEN-END:|0-initialize|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Method: startMIDlet ">//GEN-BEGIN:|3-startMIDlet|0|3-preAction
    /**
     * Performs an action assigned to the Mobile Device - MIDlet Started point.
     */
    public void startMIDlet() {//GEN-END:|3-startMIDlet|0|3-preAction
        // write pre-action user code here
        switchDisplayable(null, getFormPrincipal());//GEN-LINE:|3-startMIDlet|1|3-postAction
        // write post-action user code here
    }//GEN-BEGIN:|3-startMIDlet|2|
    //</editor-fold>//GEN-END:|3-startMIDlet|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Method: resumeMIDlet ">//GEN-BEGIN:|4-resumeMIDlet|0|4-preAction
    /**
     * Performs an action assigned to the Mobile Device - MIDlet Resumed point.
     */
    public void resumeMIDlet() {//GEN-END:|4-resumeMIDlet|0|4-preAction
        // write pre-action user code here
//GEN-LINE:|4-resumeMIDlet|1|4-postAction
        // write post-action user code here
    }//GEN-BEGIN:|4-resumeMIDlet|2|
    //</editor-fold>//GEN-END:|4-resumeMIDlet|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Method: switchDisplayable ">//GEN-BEGIN:|5-switchDisplayable|0|5-preSwitch
    /**
     * Switches a current displayable in a display. The <code>display</code> instance is taken from <code>getDisplay</code> method. This method is used by all actions in the design for switching displayable.
     * @param alert the Alert which is temporarily set to the display; if <code>null</code>, then <code>nextDisplayable</code> is set immediately
     * @param nextDisplayable the Displayable to be set
     */
    public void switchDisplayable(Alert alert, Displayable nextDisplayable) {//GEN-END:|5-switchDisplayable|0|5-preSwitch
        // write pre-switch user code here
        Display display = getDisplay();//GEN-BEGIN:|5-switchDisplayable|1|5-postSwitch
        if (alert == null) {
            display.setCurrent(nextDisplayable);
        } else {
            display.setCurrent(alert, nextDisplayable);
        }//GEN-END:|5-switchDisplayable|1|5-postSwitch
        // write post-switch user code here
    }//GEN-BEGIN:|5-switchDisplayable|2|
    //</editor-fold>//GEN-END:|5-switchDisplayable|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Method: commandAction for Displayables ">//GEN-BEGIN:|7-commandAction|0|7-preCommandAction
    /**
     * Called by a system to indicated that a command has been invoked on a particular displayable.
     * @param command the Command that was invoked
     * @param displayable the Displayable where the command was invoked
     */
    public void commandAction(Command command, Displayable displayable) {//GEN-END:|7-commandAction|0|7-preCommandAction
        // write pre-action user code here
        if (displayable == formDecimoTerceiro) {//GEN-BEGIN:|7-commandAction|1|55-preAction
            if (command == backCommand4) {//GEN-END:|7-commandAction|1|55-preAction
                // write pre-action user code here
                switchDisplayable(null, getFormPrincipal());//GEN-LINE:|7-commandAction|2|55-postAction
                // write post-action user code here
            } else if (command == calcularDecimoCommand) {//GEN-LINE:|7-commandAction|3|110-preAction
                try {
                    double salarioBrutoDecimo = Double.parseDouble(salarioBrutoDecimoField.getString());
                    double mesesTrabalhados = Integer.parseInt(mesesTrabalhadosDecimoField.getString());
                    double taxaLiquido = 0.08;

                    double parcelaBruto = ((mesesTrabalhados / 12) * salarioBrutoDecimo);
                    double parcelaUnica = parcelaBruto;
                    double primeiraParcela = parcelaBruto/2;
                    double segundaParcela = primeiraParcela - (parcelaUnica*taxaLiquido);

                    int formatar1 = 100; //formatar parte 1
                    int formatar2a = (int) (primeiraParcela * formatar1 + 0.5); //formatar parte 2
                    int formatar2b = (int) (segundaParcela * formatar1 + 0.5); //formatar parte 2
                    int formatar2c = (int) (parcelaUnica * formatar1 + 0.5); //formatar parte 2
                    int formatar2d = (int) ((parcelaBruto-(parcelaUnica*taxaLiquido)) * formatar1 + 0.5); //formatar parte 2
                    int formatar2e = (int) ((parcelaUnica*taxaLiquido) * formatar1 + 0.5); //formatar parte 2

                    double resultadoFinala = (double) formatar2a/formatar1; //formatar parte 3
                    double resultadoFinalb = (double) formatar2b/formatar1; //formatar parte 3
                    double resultadoFinalc = (double) formatar2c/formatar1; //formatar parte 3
                    double resultadoFinald = (double) formatar2d/formatar1; //formatar parte 3
                    double resultadoFinale = (double) formatar2e/formatar1; //formatar parte 3

                    decimoFinalItem.setText("\nR$ "+ (resultadoFinald)
                            +"\n(R$ "+(resultadoFinale)+" do INSS descontado)");
                    parcelaUnicaItem.setText("\nR$ "+resultadoFinalc);
                    parcelasDecimoItem.setText("\nPrimeira parcela:\nR$ "+resultadoFinala
                                                +"\nSegunda parcela:\nR$ "+resultadoFinalb);

                } catch (Exception ex) {
                   Alert erro = new Alert("Campos incorretos!");
                   erro.setString(ex.getMessage());
                   erro.setTimeout(2000);
                   getDisplay().setCurrent(erro);
                }

//GEN-LINE:|7-commandAction|4|110-postAction

            }//GEN-BEGIN:|7-commandAction|5|38-preAction
        } else if (displayable == formFGTS) {
            if (command == backCommand2) {//GEN-END:|7-commandAction|5|38-preAction
                // write pre-action user code here
                switchDisplayable(null, getFormPrincipal());//GEN-LINE:|7-commandAction|6|38-postAction
                // write post-action user code here
            } else if (command == calcularFGTSCommand) {//GEN-LINE:|7-commandAction|7|93-preAction
                //pre-action user code
//GEN-LINE:|7-commandAction|8|93-postAction
                try {
                    double fgts = Double.parseDouble(salLiquidoFGTSTextField.getString());
                    int meses = Integer.parseInt(mesesTextField.getString());


                    double valorFGTS = (0.08 * fgts) * meses;
                    int formatar1 = 100; //formatar parte 1
                    int formatar2 = (int) (valorFGTS * formatar1 + 0.5); //formatar parte 2
                    double resultadoFinal = (double) formatar2/formatar1; //formatar parte 3

                    fgtsStringItem.setText("\nR$ " + resultadoFinal);

                } catch (Exception ex) {
                   Alert erro = new Alert("Campos incorretos!");
                   erro.setString(ex.getMessage());
                   erro.setTimeout(2000);
                   getDisplay().setCurrent(erro);
                }
            }//GEN-BEGIN:|7-commandAction|9|65-preAction
        } else if (displayable == formFerias) {
            if (command == backCommand6) {//GEN-END:|7-commandAction|9|65-preAction
                // write pre-action user code here
                switchDisplayable(null, getFormPrincipal());//GEN-LINE:|7-commandAction|10|65-postAction
                // write post-action user code here
            } else if (command == calcularFeriasCommand) {//GEN-LINE:|7-commandAction|11|140-preAction
                // write pre-action user code here
//GEN-LINE:|7-commandAction|12|140-postAction
                try {
                    double salarioBruto = Double.parseDouble(salBrutoFeriasTextField.getString());
                    double taxaLiquido;
                    if (salarioBruto <= 1247.70) {
                        taxaLiquido = 0.08;
                    } else if (salarioBruto >= 1247.71 && salarioBruto <= 2079.50) {
                        taxaLiquido = 0.09;
                    } else {
                        taxaLiquido = 0.11;
                    }

                    double valorFerias = salarioBruto * 0.333333;
                    double tercoValorFerias = valorFerias * 0.333333;
                    double feriasParcial = valorFerias + tercoValorFerias;
                    double descontoINSS = (valorFerias*taxaLiquido)+(feriasParcial*taxaLiquido);

                    double feriasTotal = feriasParcial - descontoINSS;

                    int formatar1 = 100; //formatar parte 1
                    int formatar2a = (int) (feriasParcial * formatar1 + 0.5); //formatar parte 2
                    int formatar2b = (int) (feriasTotal * formatar1 + 0.5); //formatar parte 2
                    int formatar2c = (int) (descontoINSS * formatar1 + 0.5); //formatar parte 2
                    double resultadoFinala = (double) formatar2a/formatar1; //formatar parte 3
                    double resultadoFinalb = (double) formatar2b/formatar1; //formatar parte 3
                    double resultadoFinalc = (double) formatar2c/formatar1; //formatar parte 3

                    valorFeriasStringItem.setText("\nFérias Parcial:\nR$ "+resultadoFinala
                            +"\n\nDesconto do INSS:\nR$"+resultadoFinalc
                            +"\n\nFérias a receber:\nR$ "+resultadoFinalb);
                } catch (Exception ex) {
                   Alert erro = new Alert("Campos incorretos!");
                   erro.setString(ex.getMessage());
                   erro.setTimeout(2000);
                   getDisplay().setCurrent(erro);
                }
            }//GEN-BEGIN:|7-commandAction|13|63-preAction
        } else if (displayable == formHoraExtra) {
            if (command == backCommand5) {//GEN-END:|7-commandAction|13|63-preAction
                // write pre-action user code here
                switchDisplayable(null, getFormPrincipal());//GEN-LINE:|7-commandAction|14|63-postAction
                // write post-action user code here
            } else if (command == calcularHoraExtraCommand) {//GEN-LINE:|7-commandAction|15|134-preAction

//GEN-LINE:|7-commandAction|16|134-postAction
                try {
                    double salBase = Double.parseDouble(salarioBaseTextField.getString());
                    double horasExtras = Double.parseDouble(horasExtrasTextField.getString());
                    double salHora = salBase/220;
                    double valHoraExtra =  (salHora + (salHora * 0.5));

                    int formatar1 = 100; //formatar parte 1
                    double resultado = valHoraExtra * horasExtras;
                    int formatar2 = (int) (resultado * formatar1 + 0.5); //formatar parte 2
                    double resultadoFinal = (double) formatar2/formatar1; //formatar parte 3

                    horasReceberStringItem.setText("\nR$ "+resultadoFinal);
                } catch (Exception ex) {
                   Alert erro = new Alert("Campos incorretos!");
                   erro.setString(ex.getMessage());
                   erro.setTimeout(2000);
                   getDisplay().setCurrent(erro);
                }
            }//GEN-BEGIN:|7-commandAction|17|45-preAction
        } else if (displayable == formINSS) {
            if (command == backCommand3) {//GEN-END:|7-commandAction|17|45-preAction
                // write pre-action user code here
                switchDisplayable(null, getFormPrincipal());//GEN-LINE:|7-commandAction|18|45-postAction
                // write post-action user code here
            } else if (command == calcularINSSCommand) {//GEN-LINE:|7-commandAction|19|99-preAction
                // pre-action user code
//GEN-LINE:|7-commandAction|20|99-postAction
                try {
                    double salBrutoINSS = Double.parseDouble(salBrutoINSSTextField.getString());
                    double taxaLiquido;
                    if (salBrutoINSS <= 1247.70) {
                        taxaLiquido = 0.08;
                    } else if (salBrutoINSS >= 1247.71 && salBrutoINSS <= 2079.50) {
                        taxaLiquido = 0.09;
                    } else {
                        taxaLiquido = 0.11;
                    }

                    int formatar1 = 100; //formatar parte 1
                    int formatar2 = (int) ((salBrutoINSS*taxaLiquido)* formatar1 + 0.5); //formatar parte 2
                    double resultadoFinal = (double) formatar2/formatar1; //formatar parte 3
                    taxaINSSStringItem.setText("\n" + taxaLiquido * 100 + "%");
                    descontarINSSStringItem.setText("\nR$ " + resultadoFinal);
                } catch (Exception ex) {
                   Alert erro = new Alert("Campos incorretos!");
                   erro.setString(ex.getMessage());
                   erro.setTimeout(2000);
                   getDisplay().setCurrent(erro);
                }
            }//GEN-BEGIN:|7-commandAction|21|52-preAction
        } else if (displayable == formPrincipal) {
            if (command == decTerceiroCommand) {//GEN-END:|7-commandAction|21|52-preAction
                // write pre-action user code here
                switchDisplayable(null, getFormDecimoTerceiro());//GEN-LINE:|7-commandAction|22|52-postAction
                // write post-action user code here
            } else if (command == exitCommand) {//GEN-LINE:|7-commandAction|23|19-preAction
                // write pre-action user code here
                exitMIDlet();//GEN-LINE:|7-commandAction|24|19-postAction
                // write post-action user code here
            } else if (command == feriasCommand) {//GEN-LINE:|7-commandAction|25|69-preAction
                // write pre-action user code here
                switchDisplayable(null, getFormFerias());//GEN-LINE:|7-commandAction|26|69-postAction
                // write post-action user code here
            } else if (command == fgtsCommand) {//GEN-LINE:|7-commandAction|27|41-preAction
                // write pre-action user code here
                switchDisplayable(null, getFormFGTS());//GEN-LINE:|7-commandAction|28|41-postAction
                // write post-action user code here
            } else if (command == horaExtraCommand) {//GEN-LINE:|7-commandAction|29|67-preAction
                // write pre-action user code here
                switchDisplayable(null, getFormHoraExtra());//GEN-LINE:|7-commandAction|30|67-postAction
                // write post-action user code here
            } else if (command == inssCommand) {//GEN-LINE:|7-commandAction|31|48-preAction
                // write pre-action user code here
                switchDisplayable(null, getFormINSS());//GEN-LINE:|7-commandAction|32|48-postAction
                // write post-action user code here
            } else if (command == salBrutoCommand) {//GEN-LINE:|7-commandAction|33|34-preAction
                // write pre-action user code here
                switchDisplayable(null, getFormSalarioBruto());//GEN-LINE:|7-commandAction|34|34-postAction
                // write post-action user code here
            } else if (command == salLiquidoCommand) {//GEN-LINE:|7-commandAction|35|24-preAction
                // write pre-action user code here
                switchDisplayable(null, getFormSalarioLiquido());//GEN-LINE:|7-commandAction|36|24-postAction
                // write post-action user code here
            }//GEN-BEGIN:|7-commandAction|37|31-preAction
        } else if (displayable == formSalarioBruto) {
            if (command == backCommand1) {//GEN-END:|7-commandAction|37|31-preAction
                // write pre-action user code here
                switchDisplayable(null, getFormPrincipal());//GEN-LINE:|7-commandAction|38|31-postAction
                // write post-action user code here
            } else if (command == calcularBrutoCommand) {//GEN-LINE:|7-commandAction|39|84-preAction
                // write pre-action user code here
//GEN-LINE:|7-commandAction|40|84-postAction
                try {
                    double salLiquidoDesejado = Double.parseDouble(salLiquidoDesTextField.getString());
                    double descontosTotal = Double.parseDouble(descontosBrutoTextField.getString());
                    double taxaLiquido;
                    if (salLiquidoDesejado <= 1247.70) {
                        taxaLiquido = 0.08;
                    } else if (salLiquidoDesejado >= 1247.71 && salLiquidoDesejado <= 2079.50) {
                        taxaLiquido = 0.09;
                    } else {
                        taxaLiquido = 0.11;
                    }


                    double descontoTotal = ((taxaLiquido * salLiquidoDesejado) + descontosTotal);

                    int formatar1 = 100; //formatar parte 1
                    int formatar2a = (int) ((taxaLiquido*100) * formatar1 + 0.5); //formatar parte 2
                    int formatar2b = (int) ((taxaLiquido*salLiquidoDesejado) * formatar1 + 0.5); //formatar parte 2
                    int formatar2c = (int) (descontoTotal * formatar1 + 0.5); //formatar parte b
                    int formatar2d = (int) (descontosTotal * formatar1 + 0.5); //formatar parte b
                    int formatar2e = (int) ((salLiquidoDesejado-descontoTotal) * formatar1 + 0.5); //formatar parte b
                    double resultadoFinala = (double) formatar2a/formatar1; //formatar parte 3
                    double resultadoFinalb = (double) formatar2b/formatar1; //formatar parte 3
                    double resultadoFinalc = (double) formatar2c/formatar1; //formatar parte 3
                    double resultadoFinald = (double) formatar2d/formatar1; //formatar parte 3
                    double resultadoFinale = (double) formatar2e/formatar1; //formatar parte 3

                    descontosINSSBrutoStringItem.setText("\n" + resultadoFinala + "% (R$ " + resultadoFinalb + ")");
                    outrosDescontosBrutoTextField.setText("\nR$ " + resultadoFinald);
                    salBrutoDesTextField.setText("\nR$ " + resultadoFinale);
                } catch (Exception ex) {
                   Alert erro = new Alert("Campos incorretos!");
                   erro.setString(ex.getMessage());
                   erro.setTimeout(2000);
                   getDisplay().setCurrent(erro);
                }
            }//GEN-BEGIN:|7-commandAction|41|27-preAction
        } else if (displayable == formSalarioLiquido) {
            if (command == backCommand) {//GEN-END:|7-commandAction|41|27-preAction
                // write pre-action user code here
                switchDisplayable(null, getFormPrincipal());//GEN-LINE:|7-commandAction|42|27-postAction
                // write post-action user code here
            } else if (command == calcularLiquidoCommand) {//GEN-LINE:|7-commandAction|43|82-preAction
                // write pre-action user code here
//GEN-LINE:|7-commandAction|44|82-postAction
                try {
                    double salBruto = Double.parseDouble(salBrutoTextField.getString());
                    double descontos = Double.parseDouble(descontosTextField.getString());
                    double taxaLiquido;
                    if (salBruto <= 1247.70) {
                        taxaLiquido = 0.08;
                    } else if (salBruto >= 1247.71 && salBruto <= 2079.50) {
                        taxaLiquido = 0.09;
                    } else {
                        taxaLiquido = 0.11;
                    }
                    double descontoTotal = ((taxaLiquido * salBruto) + descontos);
                    double salLiquido = salBruto - descontoTotal;

                    int formatar1 = 100; //formatar parte 1
                    int formatar2a = (int) (descontoTotal * formatar1 + 0.5); //formatar parte 2
                    int formatar2b = (int) ((taxaLiquido * salBruto) * formatar1 + 0.5); //formatar parte 2
                    int formatar2c = (int) (salLiquido * formatar1 + 0.5); //formatar parte 2
                    double resultadoFinala = (double) formatar2a/formatar1; //formatar parte 3
                    double resultadoFinalb = (double) formatar2b/formatar1; //formatar parte 3
                    double resultadoFinalc = (double) formatar2c/formatar1; //formatar parte 3


                    descontosStringField.setText("\n" + "R$ " + resultadoFinala
                            + " (" + taxaLiquido * 100 + "%)\n(R$ " + (resultadoFinalb) + " para o INSS)");
                    salLiquidoStringField.setText("\n" + "R$ " + resultadoFinalc);
                } catch (Exception ex) {
                   Alert erro = new Alert("Campos incorretos!");
                   erro.setString(ex.getMessage());
                   erro.setTimeout(2000);
                   getDisplay().setCurrent(erro);
                }

            }//GEN-BEGIN:|7-commandAction|45|7-postCommandAction
        }//GEN-END:|7-commandAction|45|7-postCommandAction
        // write post-action user code here
    }//GEN-BEGIN:|7-commandAction|46|
    //</editor-fold>//GEN-END:|7-commandAction|46|


    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: exitCommand ">//GEN-BEGIN:|18-getter|0|18-preInit
    /**
     * Returns an initiliazed instance of exitCommand component.
     * @return the initialized component instance
     */
    public Command getExitCommand() {
        if (exitCommand == null) {//GEN-END:|18-getter|0|18-preInit
            // write pre-init user code here
            exitCommand = new Command("Exit", Command.EXIT, 0);//GEN-LINE:|18-getter|1|18-postInit
            // write post-init user code here
        }//GEN-BEGIN:|18-getter|2|
        return exitCommand;
    }
    //</editor-fold>//GEN-END:|18-getter|2|
    //</editor-fold>

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: formPrincipal ">//GEN-BEGIN:|14-getter|0|14-preInit
    /**
     * Returns an initiliazed instance of formPrincipal component.
     * @return the initialized component instance
     */
    public Form getFormPrincipal() {
        if (formPrincipal == null) {//GEN-END:|14-getter|0|14-preInit
            // write pre-init user code here
            formPrincipal = new Form("Calculadora Trabalhista", new Item[] { getHomeBannerStringItem(), getHomeBannerImageItem() });//GEN-BEGIN:|14-getter|1|14-postInit
            formPrincipal.addCommand(getExitCommand());
            formPrincipal.addCommand(getSalLiquidoCommand());
            formPrincipal.addCommand(getSalBrutoCommand());
            formPrincipal.addCommand(getFgtsCommand());
            formPrincipal.addCommand(getInssCommand());
            formPrincipal.addCommand(getDecTerceiroCommand());
            formPrincipal.addCommand(getHoraExtraCommand());
            formPrincipal.addCommand(getFeriasCommand());
            formPrincipal.setCommandListener(this);//GEN-END:|14-getter|1|14-postInit
            // write post-init user code here
        }//GEN-BEGIN:|14-getter|2|
        return formPrincipal;
    }
    //</editor-fold>//GEN-END:|14-getter|2|
    //</editor-fold>

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: homeBannerStringItem ">//GEN-BEGIN:|16-getter|0|16-preInit
    /**
     * Returns an initiliazed instance of homeBannerStringItem component.
     * @return the initialized component instance
     */
    public StringItem getHomeBannerStringItem() {
        if (homeBannerStringItem == null) {//GEN-END:|16-getter|0|16-preInit
            // write pre-init user code here
            homeBannerStringItem = new StringItem("Selecione no menu um dos tipos de calculos trabalhistas.", "");//GEN-LINE:|16-getter|1|16-postInit
            // write post-init user code here
        }//GEN-BEGIN:|16-getter|2|
        return homeBannerStringItem;
    }
    //</editor-fold>//GEN-END:|16-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: salLiquidoCommand ">//GEN-BEGIN:|23-getter|0|23-preInit
    /**
     * Returns an initiliazed instance of salLiquidoCommand component.
     * @return the initialized component instance
     */
    public Command getSalLiquidoCommand() {
        if (salLiquidoCommand == null) {//GEN-END:|23-getter|0|23-preInit
            // write pre-init user code here
            salLiquidoCommand = new Command("Sal\u00E1rio Liquido", Command.ITEM, 0);//GEN-LINE:|23-getter|1|23-postInit
            // write post-init user code here
        }//GEN-BEGIN:|23-getter|2|
        return salLiquidoCommand;
    }
    //</editor-fold>//GEN-END:|23-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: backCommand ">//GEN-BEGIN:|26-getter|0|26-preInit
    /**
     * Returns an initiliazed instance of backCommand component.
     * @return the initialized component instance
     */
    public Command getBackCommand() {
        if (backCommand == null) {//GEN-END:|26-getter|0|26-preInit
            // write pre-init user code here
            backCommand = new Command("Voltar", Command.BACK, 0);//GEN-LINE:|26-getter|1|26-postInit
            // write post-init user code here
        }//GEN-BEGIN:|26-getter|2|
        return backCommand;
    }
    //</editor-fold>//GEN-END:|26-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: backCommand1 ">//GEN-BEGIN:|30-getter|0|30-preInit
    /**
     * Returns an initiliazed instance of backCommand1 component.
     * @return the initialized component instance
     */
    public Command getBackCommand1() {
        if (backCommand1 == null) {//GEN-END:|30-getter|0|30-preInit
            // write pre-init user code here
            backCommand1 = new Command("Voltar", Command.BACK, 0);//GEN-LINE:|30-getter|1|30-postInit
            // write post-init user code here
        }//GEN-BEGIN:|30-getter|2|
        return backCommand1;
    }
    //</editor-fold>//GEN-END:|30-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: salBrutoCommand ">//GEN-BEGIN:|33-getter|0|33-preInit
    /**
     * Returns an initiliazed instance of salBrutoCommand component.
     * @return the initialized component instance
     */
    public Command getSalBrutoCommand() {
        if (salBrutoCommand == null) {//GEN-END:|33-getter|0|33-preInit
            // write pre-init user code here
            salBrutoCommand = new Command("Sal\u00E1rio Bruto", Command.ITEM, 0);//GEN-LINE:|33-getter|1|33-postInit
            // write post-init user code here
        }//GEN-BEGIN:|33-getter|2|
        return salBrutoCommand;
    }
    //</editor-fold>//GEN-END:|33-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: backCommand2 ">//GEN-BEGIN:|37-getter|0|37-preInit
    /**
     * Returns an initiliazed instance of backCommand2 component.
     * @return the initialized component instance
     */
    public Command getBackCommand2() {
        if (backCommand2 == null) {//GEN-END:|37-getter|0|37-preInit
            // write pre-init user code here
            backCommand2 = new Command("Voltar", Command.BACK, 0);//GEN-LINE:|37-getter|1|37-postInit
            // write post-init user code here
        }//GEN-BEGIN:|37-getter|2|
        return backCommand2;
    }
    //</editor-fold>//GEN-END:|37-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: fgtsCommand ">//GEN-BEGIN:|40-getter|0|40-preInit
    /**
     * Returns an initiliazed instance of fgtsCommand component.
     * @return the initialized component instance
     */
    public Command getFgtsCommand() {
        if (fgtsCommand == null) {//GEN-END:|40-getter|0|40-preInit
            // write pre-init user code here
            fgtsCommand = new Command("FGTS", Command.ITEM, 0);//GEN-LINE:|40-getter|1|40-postInit
            // write post-init user code here
        }//GEN-BEGIN:|40-getter|2|
        return fgtsCommand;
    }
    //</editor-fold>//GEN-END:|40-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: backCommand3 ">//GEN-BEGIN:|44-getter|0|44-preInit
    /**
     * Returns an initiliazed instance of backCommand3 component.
     * @return the initialized component instance
     */
    public Command getBackCommand3() {
        if (backCommand3 == null) {//GEN-END:|44-getter|0|44-preInit
            // write pre-init user code here
            backCommand3 = new Command("Voltar", Command.BACK, 0);//GEN-LINE:|44-getter|1|44-postInit
            // write post-init user code here
        }//GEN-BEGIN:|44-getter|2|
        return backCommand3;
    }
    //</editor-fold>//GEN-END:|44-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: inssCommand ">//GEN-BEGIN:|47-getter|0|47-preInit
    /**
     * Returns an initiliazed instance of inssCommand component.
     * @return the initialized component instance
     */
    public Command getInssCommand() {
        if (inssCommand == null) {//GEN-END:|47-getter|0|47-preInit
            // write pre-init user code here
            inssCommand = new Command("INSS", Command.ITEM, 0);//GEN-LINE:|47-getter|1|47-postInit
            // write post-init user code here
        }//GEN-BEGIN:|47-getter|2|
        return inssCommand;
    }
    //</editor-fold>//GEN-END:|47-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: decTerceiroCommand ">//GEN-BEGIN:|51-getter|0|51-preInit
    /**
     * Returns an initiliazed instance of decTerceiroCommand component.
     * @return the initialized component instance
     */
    public Command getDecTerceiroCommand() {
        if (decTerceiroCommand == null) {//GEN-END:|51-getter|0|51-preInit
            // write pre-init user code here
            decTerceiroCommand = new Command("Decimo Terceiro", Command.ITEM, 0);//GEN-LINE:|51-getter|1|51-postInit
            // write post-init user code here
        }//GEN-BEGIN:|51-getter|2|
        return decTerceiroCommand;
    }
    //</editor-fold>//GEN-END:|51-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: backCommand4 ">//GEN-BEGIN:|54-getter|0|54-preInit
    /**
     * Returns an initiliazed instance of backCommand4 component.
     * @return the initialized component instance
     */
    public Command getBackCommand4() {
        if (backCommand4 == null) {//GEN-END:|54-getter|0|54-preInit
            // write pre-init user code here
            backCommand4 = new Command("Voltar", Command.BACK, 0);//GEN-LINE:|54-getter|1|54-postInit
            // write post-init user code here
        }//GEN-BEGIN:|54-getter|2|
        return backCommand4;
    }
    //</editor-fold>//GEN-END:|54-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: formSalarioLiquido ">//GEN-BEGIN:|22-getter|0|22-preInit
    /**
     * Returns an initiliazed instance of formSalarioLiquido component.
     * @return the initialized component instance
     */
    public Form getFormSalarioLiquido() {
        if (formSalarioLiquido == null) {//GEN-END:|22-getter|0|22-preInit
            // write pre-init user code here
            formSalarioLiquido = new Form("C\u00E1lculo de Sal\u00E1rio L\u00EDquido", new Item[] { getSalBrutoTextField(), getDescontosTextField(), getSpacer(), getSalLiquidoStringField(), getDescontosStringField() });//GEN-BEGIN:|22-getter|1|22-postInit
            formSalarioLiquido.addCommand(getBackCommand());
            formSalarioLiquido.addCommand(getCalcularLiquidoCommand());
            formSalarioLiquido.setCommandListener(this);//GEN-END:|22-getter|1|22-postInit
            // write post-init user code here
        }//GEN-BEGIN:|22-getter|2|
        return formSalarioLiquido;
    }
    //</editor-fold>//GEN-END:|22-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: formSalarioBruto ">//GEN-BEGIN:|29-getter|0|29-preInit
    /**
     * Returns an initiliazed instance of formSalarioBruto component.
     * @return the initialized component instance
     */
    public Form getFormSalarioBruto() {
        if (formSalarioBruto == null) {//GEN-END:|29-getter|0|29-preInit
            // write pre-init user code here
            formSalarioBruto = new Form("C\u00E1lculo de Sal\u00E1rio Bruto", new Item[] { getSalLiquidoDesTextField(), getDescontosBrutoTextField(), getSpacer1(), getDescontosINSSBrutoStringItem(), getOutrosDescontosBrutoTextField(), getSalBrutoDesTextField() });//GEN-BEGIN:|29-getter|1|29-postInit
            formSalarioBruto.addCommand(getBackCommand1());
            formSalarioBruto.addCommand(getCalcularBrutoCommand());
            formSalarioBruto.setCommandListener(this);//GEN-END:|29-getter|1|29-postInit
            // write post-init user code here
        }//GEN-BEGIN:|29-getter|2|
        return formSalarioBruto;
    }
    //</editor-fold>//GEN-END:|29-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: formFGTS ">//GEN-BEGIN:|36-getter|0|36-preInit
    /**
     * Returns an initiliazed instance of formFGTS component.
     * @return the initialized component instance
     */
    public Form getFormFGTS() {
        if (formFGTS == null) {//GEN-END:|36-getter|0|36-preInit
            // write pre-init user code here
            formFGTS = new Form("C\u00E1lculo de FGTS", new Item[] { getSalLiquidoFGTSTextField(), getMesesTextField(), getSpacer3(), getFgtsStringItem() });//GEN-BEGIN:|36-getter|1|36-postInit
            formFGTS.addCommand(getBackCommand2());
            formFGTS.addCommand(getCalcularFGTSCommand());
            formFGTS.setCommandListener(this);//GEN-END:|36-getter|1|36-postInit
            // write post-init user code here
        }//GEN-BEGIN:|36-getter|2|
        return formFGTS;
    }
    //</editor-fold>//GEN-END:|36-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: formINSS ">//GEN-BEGIN:|43-getter|0|43-preInit
    /**
     * Returns an initiliazed instance of formINSS component.
     * @return the initialized component instance
     */
    public Form getFormINSS() {
        if (formINSS == null) {//GEN-END:|43-getter|0|43-preInit
            // write pre-init user code here
            formINSS = new Form("C\u00E1lculo de INSS", new Item[] { getSalBrutoINSSTextField(), getSpacer2(), getTaxaINSSStringItem(), getDescontarINSSStringItem() });//GEN-BEGIN:|43-getter|1|43-postInit
            formINSS.addCommand(getBackCommand3());
            formINSS.addCommand(getCalcularINSSCommand());
            formINSS.setCommandListener(this);//GEN-END:|43-getter|1|43-postInit
            // write post-init user code here
        }//GEN-BEGIN:|43-getter|2|
        return formINSS;
    }
    //</editor-fold>//GEN-END:|43-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: formDecimoTerceiro ">//GEN-BEGIN:|49-getter|0|49-preInit
    /**
     * Returns an initiliazed instance of formDecimoTerceiro component.
     * @return the initialized component instance
     */
    public Form getFormDecimoTerceiro() {
        if (formDecimoTerceiro == null) {//GEN-END:|49-getter|0|49-preInit
            // write pre-init user code here
            formDecimoTerceiro = new Form("C\u00E1lculo de D\u00E9cimo Terceiro", new Item[] { getSalarioBrutoDecimoField(), getMesesTrabalhadosDecimoField(), getSpacer4(), getParcelaUnicaItem(), getDecimoFinalItem(), getParcelasDecimoItem() });//GEN-BEGIN:|49-getter|1|49-postInit
            formDecimoTerceiro.addCommand(getBackCommand4());
            formDecimoTerceiro.addCommand(getCalcularDecimoCommand());
            formDecimoTerceiro.setCommandListener(this);//GEN-END:|49-getter|1|49-postInit
            // write post-init user code here
        }//GEN-BEGIN:|49-getter|2|
        return formDecimoTerceiro;
    }
    //</editor-fold>//GEN-END:|49-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: image ">//GEN-BEGIN:|58-getter|0|58-preInit
    /**
     * Returns an initiliazed instance of image component.
     * @return the initialized component instance
     */
    public Image getImage() {
        if (image == null) {//GEN-END:|58-getter|0|58-preInit
            // write pre-init user code here
            try {//GEN-BEGIN:|58-getter|1|58-@java.io.IOException
                image = Image.createImage("/media/banner-app.png");
            } catch (java.io.IOException e) {//GEN-END:|58-getter|1|58-@java.io.IOException
            }//GEN-LINE:|58-getter|2|58-postInit
            // write post-init user code here
        }//GEN-BEGIN:|58-getter|3|
        return image;
    }
    //</editor-fold>//GEN-END:|58-getter|3|



    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: backCommand5 ">//GEN-BEGIN:|62-getter|0|62-preInit
    /**
     * Returns an initiliazed instance of backCommand5 component.
     * @return the initialized component instance
     */
    public Command getBackCommand5() {
        if (backCommand5 == null) {//GEN-END:|62-getter|0|62-preInit
            // write pre-init user code here
            backCommand5 = new Command("Voltar", Command.BACK, 0);//GEN-LINE:|62-getter|1|62-postInit
            // write post-init user code here
        }//GEN-BEGIN:|62-getter|2|
        return backCommand5;
    }
    //</editor-fold>//GEN-END:|62-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: backCommand6 ">//GEN-BEGIN:|64-getter|0|64-preInit
    /**
     * Returns an initiliazed instance of backCommand6 component.
     * @return the initialized component instance
     */
    public Command getBackCommand6() {
        if (backCommand6 == null) {//GEN-END:|64-getter|0|64-preInit
            // write pre-init user code here
            backCommand6 = new Command("Voltar", Command.BACK, 0);//GEN-LINE:|64-getter|1|64-postInit
            // write post-init user code here
        }//GEN-BEGIN:|64-getter|2|
        return backCommand6;
    }
    //</editor-fold>//GEN-END:|64-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: horaExtraCommand ">//GEN-BEGIN:|66-getter|0|66-preInit
    /**
     * Returns an initiliazed instance of horaExtraCommand component.
     * @return the initialized component instance
     */
    public Command getHoraExtraCommand() {
        if (horaExtraCommand == null) {//GEN-END:|66-getter|0|66-preInit
            // write pre-init user code here
            horaExtraCommand = new Command("Horas Extras", Command.ITEM, 0);//GEN-LINE:|66-getter|1|66-postInit
            // write post-init user code here
        }//GEN-BEGIN:|66-getter|2|
        return horaExtraCommand;
    }
    //</editor-fold>//GEN-END:|66-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: feriasCommand ">//GEN-BEGIN:|68-getter|0|68-preInit
    /**
     * Returns an initiliazed instance of feriasCommand component.
     * @return the initialized component instance
     */
    public Command getFeriasCommand() {
        if (feriasCommand == null) {//GEN-END:|68-getter|0|68-preInit
            // write pre-init user code here
            feriasCommand = new Command("F\u00E9rias", Command.ITEM, 0);//GEN-LINE:|68-getter|1|68-postInit
            // write post-init user code here
        }//GEN-BEGIN:|68-getter|2|
        return feriasCommand;
    }
    //</editor-fold>//GEN-END:|68-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: formHoraExtra ">//GEN-BEGIN:|60-getter|0|60-preInit
    /**
     * Returns an initiliazed instance of formHoraExtra component.
     * @return the initialized component instance
     */
    public Form getFormHoraExtra() {
        if (formHoraExtra == null) {//GEN-END:|60-getter|0|60-preInit
            // write pre-init user code here
            formHoraExtra = new Form("C\u00E1lculo de Horas Extras", new Item[] { getSalarioBaseTextField(), getHorasExtrasTextField(), getSpacer5(), getHorasReceberStringItem() });//GEN-BEGIN:|60-getter|1|60-postInit
            formHoraExtra.addCommand(getBackCommand5());
            formHoraExtra.addCommand(getCalcularHoraExtraCommand());
            formHoraExtra.setCommandListener(this);//GEN-END:|60-getter|1|60-postInit
            // write post-init user code here
        }//GEN-BEGIN:|60-getter|2|
        return formHoraExtra;
    }
    //</editor-fold>//GEN-END:|60-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: formFerias ">//GEN-BEGIN:|61-getter|0|61-preInit
    /**
     * Returns an initiliazed instance of formFerias component.
     * @return the initialized component instance
     */
    public Form getFormFerias() {
        if (formFerias == null) {//GEN-END:|61-getter|0|61-preInit
            // write pre-init user code here
            formFerias = new Form("C\u00E1lculo de F\u00E9rias", new Item[] { getSalBrutoFeriasTextField(), getSpacer6(), getValorFeriasStringItem() });//GEN-BEGIN:|61-getter|1|61-postInit
            formFerias.addCommand(getBackCommand6());
            formFerias.addCommand(getCalcularFeriasCommand());
            formFerias.setCommandListener(this);//GEN-END:|61-getter|1|61-postInit
            // write post-init user code here
        }//GEN-BEGIN:|61-getter|2|
        return formFerias;
    }
    //</editor-fold>//GEN-END:|61-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: salBrutoTextField ">//GEN-BEGIN:|74-getter|0|74-preInit
    /**
     * Returns an initiliazed instance of salBrutoTextField component.
     * @return the initialized component instance
     */
    public TextField getSalBrutoTextField() {
        if (salBrutoTextField == null) {//GEN-END:|74-getter|0|74-preInit
            // write pre-init user code here
            salBrutoTextField = new TextField("Sal\u00E1rio bruto (em R$):", "", 32, TextField.ANY);//GEN-LINE:|74-getter|1|74-postInit
            // write post-init user code here
        }//GEN-BEGIN:|74-getter|2|
        return salBrutoTextField;
    }
    //</editor-fold>//GEN-END:|74-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: descontosTextField ">//GEN-BEGIN:|76-getter|0|76-preInit
    /**
     * Returns an initiliazed instance of descontosTextField component.
     * @return the initialized component instance
     */
    public TextField getDescontosTextField() {
        if (descontosTextField == null) {//GEN-END:|76-getter|0|76-preInit
            // write pre-init user code here
            descontosTextField = new TextField("Outros descontos (em R$):", "", 32, TextField.ANY);//GEN-LINE:|76-getter|1|76-postInit
            // write post-init user code here
        }//GEN-BEGIN:|76-getter|2|
        return descontosTextField;
    }
    //</editor-fold>//GEN-END:|76-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: spacer ">//GEN-BEGIN:|77-getter|0|77-preInit
    /**
     * Returns an initiliazed instance of spacer component.
     * @return the initialized component instance
     */
    public Spacer getSpacer() {
        if (spacer == null) {//GEN-END:|77-getter|0|77-preInit
            // write pre-init user code here
            spacer = new Spacer(16, 1);//GEN-LINE:|77-getter|1|77-postInit
            // write post-init user code here
        }//GEN-BEGIN:|77-getter|2|
        return spacer;
    }
    //</editor-fold>//GEN-END:|77-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: salLiquidoStringField ">//GEN-BEGIN:|79-getter|0|79-preInit
    /**
     * Returns an initiliazed instance of salLiquidoStringField component.
     * @return the initialized component instance
     */
    public StringItem getSalLiquidoStringField() {
        if (salLiquidoStringField == null) {//GEN-END:|79-getter|0|79-preInit
            // write pre-init user code here
            salLiquidoStringField = new StringItem("Sal\u00E1rio L\u00EDquido:", "R$ 00.00");//GEN-LINE:|79-getter|1|79-postInit
            // write post-init user code here
        }//GEN-BEGIN:|79-getter|2|
        return salLiquidoStringField;
    }
    //</editor-fold>//GEN-END:|79-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: descontosStringField ">//GEN-BEGIN:|80-getter|0|80-preInit
    /**
     * Returns an initiliazed instance of descontosStringField component.
     * @return the initialized component instance
     */
    public StringItem getDescontosStringField() {
        if (descontosStringField == null) {//GEN-END:|80-getter|0|80-preInit
            // write pre-init user code here
            descontosStringField = new StringItem("Foram descontados:", "R$ 00.00");//GEN-LINE:|80-getter|1|80-postInit
            // write post-init user code here
        }//GEN-BEGIN:|80-getter|2|
        return descontosStringField;
    }
    //</editor-fold>//GEN-END:|80-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: calcularLiquidoCommand ">//GEN-BEGIN:|81-getter|0|81-preInit
    /**
     * Returns an initiliazed instance of calcularLiquidoCommand component.
     * @return the initialized component instance
     */
    public Command getCalcularLiquidoCommand() {
        if (calcularLiquidoCommand == null) {//GEN-END:|81-getter|0|81-preInit
            // write pre-init user code here
            calcularLiquidoCommand = new Command("Calcular", Command.ITEM, 0);//GEN-LINE:|81-getter|1|81-postInit
            // write post-init user code here
        }//GEN-BEGIN:|81-getter|2|
        return calcularLiquidoCommand;
    }
    //</editor-fold>//GEN-END:|81-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: calcularBrutoCommand ">//GEN-BEGIN:|83-getter|0|83-preInit
    /**
     * Returns an initiliazed instance of calcularBrutoCommand component.
     * @return the initialized component instance
     */
    public Command getCalcularBrutoCommand() {
        if (calcularBrutoCommand == null) {//GEN-END:|83-getter|0|83-preInit
            // write pre-init user code here
            calcularBrutoCommand = new Command("Calcular", Command.ITEM, 0);//GEN-LINE:|83-getter|1|83-postInit
            // write post-init user code here
        }//GEN-BEGIN:|83-getter|2|
        return calcularBrutoCommand;
    }
    //</editor-fold>//GEN-END:|83-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: salLiquidoDesTextField ">//GEN-BEGIN:|85-getter|0|85-preInit
    /**
     * Returns an initiliazed instance of salLiquidoDesTextField component.
     * @return the initialized component instance
     */
    public TextField getSalLiquidoDesTextField() {
        if (salLiquidoDesTextField == null) {//GEN-END:|85-getter|0|85-preInit
            // write pre-init user code here
            salLiquidoDesTextField = new TextField("Sal\u00E1rio L\u00EDquido Desejado (em R$):", "", 32, TextField.ANY);//GEN-LINE:|85-getter|1|85-postInit
            // write post-init user code here
        }//GEN-BEGIN:|85-getter|2|
        return salLiquidoDesTextField;
    }
    //</editor-fold>//GEN-END:|85-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: descontosBrutoTextField ">//GEN-BEGIN:|86-getter|0|86-preInit
    /**
     * Returns an initiliazed instance of descontosBrutoTextField component.
     * @return the initialized component instance
     */
    public TextField getDescontosBrutoTextField() {
        if (descontosBrutoTextField == null) {//GEN-END:|86-getter|0|86-preInit
            // write pre-init user code here
            descontosBrutoTextField = new TextField("Descontos (em R$):", "", 32, TextField.ANY);//GEN-LINE:|86-getter|1|86-postInit
            // write post-init user code here
        }//GEN-BEGIN:|86-getter|2|
        return descontosBrutoTextField;
    }
    //</editor-fold>//GEN-END:|86-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: spacer1 ">//GEN-BEGIN:|87-getter|0|87-preInit
    /**
     * Returns an initiliazed instance of spacer1 component.
     * @return the initialized component instance
     */
    public Spacer getSpacer1() {
        if (spacer1 == null) {//GEN-END:|87-getter|0|87-preInit
            // write pre-init user code here
            spacer1 = new Spacer(16, 1);//GEN-LINE:|87-getter|1|87-postInit
            // write post-init user code here
        }//GEN-BEGIN:|87-getter|2|
        return spacer1;
    }
    //</editor-fold>//GEN-END:|87-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: salBrutoDesTextField ">//GEN-BEGIN:|88-getter|0|88-preInit
    /**
     * Returns an initiliazed instance of salBrutoDesTextField component.
     * @return the initialized component instance
     */
    public StringItem getSalBrutoDesTextField() {
        if (salBrutoDesTextField == null) {//GEN-END:|88-getter|0|88-preInit
            // write pre-init user code here
            salBrutoDesTextField = new StringItem("Seu Sal\u00E1rio Bruto deve ser de:", "R$ 00.00");//GEN-LINE:|88-getter|1|88-postInit
            // write post-init user code here
        }//GEN-BEGIN:|88-getter|2|
        return salBrutoDesTextField;
    }
    //</editor-fold>//GEN-END:|88-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: calcularFGTSCommand ">//GEN-BEGIN:|92-getter|0|92-preInit
    /**
     * Returns an initiliazed instance of calcularFGTSCommand component.
     * @return the initialized component instance
     */
    public Command getCalcularFGTSCommand() {
        if (calcularFGTSCommand == null) {//GEN-END:|92-getter|0|92-preInit
            // write pre-init user code here
            calcularFGTSCommand = new Command("Calcular", Command.ITEM, 0);//GEN-LINE:|92-getter|1|92-postInit
            // write post-init user code here
        }//GEN-BEGIN:|92-getter|2|
        return calcularFGTSCommand;
    }
    //</editor-fold>//GEN-END:|92-getter|2|
    //</editor-fold>
    //</editor-fold>

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: salLiquidoFGTSTextField ">//GEN-BEGIN:|89-getter|0|89-preInit
    /**
     * Returns an initiliazed instance of salLiquidoFGTSTextField component.
     * @return the initialized component instance
     */
    public TextField getSalLiquidoFGTSTextField() {
        if (salLiquidoFGTSTextField == null) {//GEN-END:|89-getter|0|89-preInit
            // write pre-init user code here
            salLiquidoFGTSTextField = new TextField("Sal\u00E1rio Bruto (em R$):", "", 32, TextField.ANY);//GEN-LINE:|89-getter|1|89-postInit
            // write post-init user code here
        }//GEN-BEGIN:|89-getter|2|
        return salLiquidoFGTSTextField;
    }
    //</editor-fold>//GEN-END:|89-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: mesesTextField ">//GEN-BEGIN:|90-getter|0|90-preInit
    /**
     * Returns an initiliazed instance of mesesTextField component.
     * @return the initialized component instance
     */
    public TextField getMesesTextField() {
        if (mesesTextField == null) {//GEN-END:|90-getter|0|90-preInit
            // write pre-init user code here
            mesesTextField = new TextField("N\u00FAmero de meses:", "", 32, TextField.ANY);//GEN-LINE:|90-getter|1|90-postInit
            // write post-init user code here
        }//GEN-BEGIN:|90-getter|2|
        return mesesTextField;
    }
    //</editor-fold>//GEN-END:|90-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: fgtsStringItem ">//GEN-BEGIN:|91-getter|0|91-preInit
    /**
     * Returns an initiliazed instance of fgtsStringItem component.
     * @return the initialized component instance
     */
    public StringItem getFgtsStringItem() {
        if (fgtsStringItem == null) {//GEN-END:|91-getter|0|91-preInit
            // write pre-init user code here
            fgtsStringItem = new StringItem("Valor do FGTS:", "R$ 00,00");//GEN-LINE:|91-getter|1|91-postInit
            // write post-init user code here
        }//GEN-BEGIN:|91-getter|2|
        return fgtsStringItem;
    }
    //</editor-fold>//GEN-END:|91-getter|2|
    //</editor-fold>

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: salBrutoINSSTextField ">//GEN-BEGIN:|97-getter|0|97-preInit
    /**
     * Returns an initiliazed instance of salBrutoINSSTextField component.
     * @return the initialized component instance
     */
    public TextField getSalBrutoINSSTextField() {
        if (salBrutoINSSTextField == null) {//GEN-END:|97-getter|0|97-preInit
            // write pre-init user code here
            salBrutoINSSTextField = new TextField("Sal\u00E1rio Bruto (em R$):", "", 32, TextField.ANY);//GEN-LINE:|97-getter|1|97-postInit
            // write post-init user code here
        }//GEN-BEGIN:|97-getter|2|
        return salBrutoINSSTextField;
    }
    //</editor-fold>//GEN-END:|97-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: calcularINSSCommand ">//GEN-BEGIN:|98-getter|0|98-preInit
    /**
     * Returns an initiliazed instance of calcularINSSCommand component.
     * @return the initialized component instance
     */
    public Command getCalcularINSSCommand() {
        if (calcularINSSCommand == null) {//GEN-END:|98-getter|0|98-preInit
            // write pre-init user code here
            calcularINSSCommand = new Command("Calcular", Command.ITEM, 0);//GEN-LINE:|98-getter|1|98-postInit
            // write post-init user code here
        }//GEN-BEGIN:|98-getter|2|
        return calcularINSSCommand;
    }
    //</editor-fold>//GEN-END:|98-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: spacer2 ">//GEN-BEGIN:|102-getter|0|102-preInit
    /**
     * Returns an initiliazed instance of spacer2 component.
     * @return the initialized component instance
     */
    public Spacer getSpacer2() {
        if (spacer2 == null) {//GEN-END:|102-getter|0|102-preInit
            // write pre-init user code here
            spacer2 = new Spacer(16, 1);//GEN-LINE:|102-getter|1|102-postInit
            // write post-init user code here
        }//GEN-BEGIN:|102-getter|2|
        return spacer2;
    }
    //</editor-fold>//GEN-END:|102-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: taxaINSSStringItem ">//GEN-BEGIN:|103-getter|0|103-preInit
    /**
     * Returns an initiliazed instance of taxaINSSStringItem component.
     * @return the initialized component instance
     */
    public StringItem getTaxaINSSStringItem() {
        if (taxaINSSStringItem == null) {//GEN-END:|103-getter|0|103-preInit
            // write pre-init user code here
            taxaINSSStringItem = new StringItem("Taxa de INSS:", "0%");//GEN-LINE:|103-getter|1|103-postInit
            // write post-init user code here
        }//GEN-BEGIN:|103-getter|2|
        return taxaINSSStringItem;
    }
    //</editor-fold>//GEN-END:|103-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: descontarINSSStringItem ">//GEN-BEGIN:|104-getter|0|104-preInit
    /**
     * Returns an initiliazed instance of descontarINSSStringItem component.
     * @return the initialized component instance
     */
    public StringItem getDescontarINSSStringItem() {
        if (descontarINSSStringItem == null) {//GEN-END:|104-getter|0|104-preInit
            // write pre-init user code here
            descontarINSSStringItem = new StringItem("Valor a ser descontado:", "R$ 00,00");//GEN-LINE:|104-getter|1|104-postInit
            // write post-init user code here
        }//GEN-BEGIN:|104-getter|2|
        return descontarINSSStringItem;
    }
    //</editor-fold>//GEN-END:|104-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: spacer3 ">//GEN-BEGIN:|105-getter|0|105-preInit
    /**
     * Returns an initiliazed instance of spacer3 component.
     * @return the initialized component instance
     */
    public Spacer getSpacer3() {
        if (spacer3 == null) {//GEN-END:|105-getter|0|105-preInit
            // write pre-init user code here
            spacer3 = new Spacer(16, 1);//GEN-LINE:|105-getter|1|105-postInit
            // write post-init user code here
        }//GEN-BEGIN:|105-getter|2|
        return spacer3;
    }
    //</editor-fold>//GEN-END:|105-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: descontosINSSBrutoStringItem ">//GEN-BEGIN:|107-getter|0|107-preInit
    /**
     * Returns an initiliazed instance of descontosINSSBrutoStringItem component.
     * @return the initialized component instance
     */
    public StringItem getDescontosINSSBrutoStringItem() {
        if (descontosINSSBrutoStringItem == null) {//GEN-END:|107-getter|0|107-preInit
            // write pre-init user code here
            descontosINSSBrutoStringItem = new StringItem("Desconto INSS:", "0% (R$ 00,00)");//GEN-LINE:|107-getter|1|107-postInit
            // write post-init user code here
        }//GEN-BEGIN:|107-getter|2|
        return descontosINSSBrutoStringItem;
    }
    //</editor-fold>//GEN-END:|107-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: outrosDescontosBrutoTextField ">//GEN-BEGIN:|108-getter|0|108-preInit
    /**
     * Returns an initiliazed instance of outrosDescontosBrutoTextField component.
     * @return the initialized component instance
     */
    public StringItem getOutrosDescontosBrutoTextField() {
        if (outrosDescontosBrutoTextField == null) {//GEN-END:|108-getter|0|108-preInit
            // write pre-init user code here
            outrosDescontosBrutoTextField = new StringItem("Outros Descontos:", "R$ 00,00");//GEN-LINE:|108-getter|1|108-postInit
            // write post-init user code here
        }//GEN-BEGIN:|108-getter|2|
        return outrosDescontosBrutoTextField;
    }
    //</editor-fold>//GEN-END:|108-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: calcularDecimoCommand ">//GEN-BEGIN:|109-getter|0|109-preInit
    /**
     * Returns an initiliazed instance of calcularDecimoCommand component.
     * @return the initialized component instance
     */
    public Command getCalcularDecimoCommand() {
        if (calcularDecimoCommand == null) {//GEN-END:|109-getter|0|109-preInit
            // write pre-init user code here
            calcularDecimoCommand = new Command("Calcular", Command.ITEM, 0);//GEN-LINE:|109-getter|1|109-postInit
            // write post-init user code here
        }//GEN-BEGIN:|109-getter|2|
        return calcularDecimoCommand;
    }
    //</editor-fold>//GEN-END:|109-getter|2|



    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: salarioBrutoDecimoField ">//GEN-BEGIN:|115-getter|0|115-preInit
    /**
     * Returns an initiliazed instance of salarioBrutoDecimoField component.
     * @return the initialized component instance
     */
    public TextField getSalarioBrutoDecimoField() {
        if (salarioBrutoDecimoField == null) {//GEN-END:|115-getter|0|115-preInit
            // write pre-init user code here
            salarioBrutoDecimoField = new TextField("Sal\u00E1rio Bruto (em R$):", "", 32, TextField.ANY);//GEN-LINE:|115-getter|1|115-postInit
            // write post-init user code here
        }//GEN-BEGIN:|115-getter|2|
        return salarioBrutoDecimoField;
    }
    //</editor-fold>//GEN-END:|115-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: mesesTrabalhadosDecimoField ">//GEN-BEGIN:|116-getter|0|116-preInit
    /**
     * Returns an initiliazed instance of mesesTrabalhadosDecimoField component.
     * @return the initialized component instance
     */
    public TextField getMesesTrabalhadosDecimoField() {
        if (mesesTrabalhadosDecimoField == null) {//GEN-END:|116-getter|0|116-preInit
            // write pre-init user code here
            mesesTrabalhadosDecimoField = new TextField("Meses trabalhados:", "", 32, TextField.ANY);//GEN-LINE:|116-getter|1|116-postInit
            // write post-init user code here
        }//GEN-BEGIN:|116-getter|2|
        return mesesTrabalhadosDecimoField;
    }
    //</editor-fold>//GEN-END:|116-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: spacer4 ">//GEN-BEGIN:|118-getter|0|118-preInit
    /**
     * Returns an initiliazed instance of spacer4 component.
     * @return the initialized component instance
     */
    public Spacer getSpacer4() {
        if (spacer4 == null) {//GEN-END:|118-getter|0|118-preInit
            // write pre-init user code here
            spacer4 = new Spacer(16, 1);//GEN-LINE:|118-getter|1|118-postInit
            // write post-init user code here
        }//GEN-BEGIN:|118-getter|2|
        return spacer4;
    }
    //</editor-fold>//GEN-END:|118-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: decimoFinalItem ">//GEN-BEGIN:|119-getter|0|119-preInit
    /**
     * Returns an initiliazed instance of decimoFinalItem component.
     * @return the initialized component instance
     */
    public StringItem getDecimoFinalItem() {
        if (decimoFinalItem == null) {//GEN-END:|119-getter|0|119-preInit
            // write pre-init user code here
            decimoFinalItem = new StringItem("D\u00E9cimo Terceiro L\u00EDquido:", "");//GEN-LINE:|119-getter|1|119-postInit
            // write post-init user code here
        }//GEN-BEGIN:|119-getter|2|
        return decimoFinalItem;
    }
    //</editor-fold>//GEN-END:|119-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: parcelaUnicaItem ">//GEN-BEGIN:|121-getter|0|121-preInit
    /**
     * Returns an initiliazed instance of parcelaUnicaItem component.
     * @return the initialized component instance
     */
    public StringItem getParcelaUnicaItem() {
        if (parcelaUnicaItem == null) {//GEN-END:|121-getter|0|121-preInit
            // write pre-init user code here
            parcelaUnicaItem = new StringItem("Parcela \u00DAnica:", "");//GEN-LINE:|121-getter|1|121-postInit
            // write post-init user code here
        }//GEN-BEGIN:|121-getter|2|
        return parcelaUnicaItem;
    }
    //</editor-fold>//GEN-END:|121-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: parcelasDecimoItem ">//GEN-BEGIN:|122-getter|0|122-preInit
    /**
     * Returns an initiliazed instance of parcelasDecimoItem component.
     * @return the initialized component instance
     */
    public StringItem getParcelasDecimoItem() {
        if (parcelasDecimoItem == null) {//GEN-END:|122-getter|0|122-preInit
            // write pre-init user code here
            parcelasDecimoItem = new StringItem("Parcelas:", "");//GEN-LINE:|122-getter|1|122-postInit
            // write post-init user code here
        }//GEN-BEGIN:|122-getter|2|
        return parcelasDecimoItem;
    }
    //</editor-fold>//GEN-END:|122-getter|2|
    //</editor-fold>



    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: sobreCommand ">//GEN-BEGIN:|125-getter|0|125-preInit
    /**
     * Returns an initiliazed instance of sobreCommand component.
     * @return the initialized component instance
     */
    public Command getSobreCommand() {
        if (sobreCommand == null) {//GEN-END:|125-getter|0|125-preInit
            // write pre-init user code here
            sobreCommand = new Command("Sobre", Command.HELP, 0);//GEN-LINE:|125-getter|1|125-postInit
            // write post-init user code here
        }//GEN-BEGIN:|125-getter|2|
        return sobreCommand;
    }
    //</editor-fold>//GEN-END:|125-getter|2|



    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: homeBannerImageItem ">//GEN-BEGIN:|123-getter|0|123-preInit
    /**
     * Returns an initiliazed instance of homeBannerImageItem component.
     * @return the initialized component instance
     */
    public ImageItem getHomeBannerImageItem() {
        if (homeBannerImageItem == null) {//GEN-END:|123-getter|0|123-preInit
            // write pre-init user code here
            homeBannerImageItem = new ImageItem("", getImage(), ImageItem.LAYOUT_CENTER | Item.LAYOUT_TOP | Item.LAYOUT_BOTTOM | Item.LAYOUT_VCENTER | Item.LAYOUT_SHRINK | Item.LAYOUT_VSHRINK | Item.LAYOUT_EXPAND | Item.LAYOUT_VEXPAND | Item.LAYOUT_2, "<Imagem perdida>", Item.PLAIN);//GEN-LINE:|123-getter|1|123-postInit
            // write post-init user code here
        }//GEN-BEGIN:|123-getter|2|
        return homeBannerImageItem;
    }
    //</editor-fold>//GEN-END:|123-getter|2|





    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: calcularHoraExtraCommand ">//GEN-BEGIN:|133-getter|0|133-preInit
    /**
     * Returns an initiliazed instance of calcularHoraExtraCommand component.
     * @return the initialized component instance
     */
    public Command getCalcularHoraExtraCommand() {
        if (calcularHoraExtraCommand == null) {//GEN-END:|133-getter|0|133-preInit
            // write pre-init user code here
            calcularHoraExtraCommand = new Command("Calcular", Command.ITEM, 0);//GEN-LINE:|133-getter|1|133-postInit
            // write post-init user code here
        }//GEN-BEGIN:|133-getter|2|
        return calcularHoraExtraCommand;
    }
    //</editor-fold>//GEN-END:|133-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: salarioBaseTextField ">//GEN-BEGIN:|135-getter|0|135-preInit
    /**
     * Returns an initiliazed instance of salarioBaseTextField component.
     * @return the initialized component instance
     */
    public TextField getSalarioBaseTextField() {
        if (salarioBaseTextField == null) {//GEN-END:|135-getter|0|135-preInit
            // write pre-init user code here
            salarioBaseTextField = new TextField("Sal\u00E1rio base (em R$):", "", 32, TextField.ANY);//GEN-LINE:|135-getter|1|135-postInit
            // write post-init user code here
        }//GEN-BEGIN:|135-getter|2|
        return salarioBaseTextField;
    }
    //</editor-fold>//GEN-END:|135-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: horasExtrasTextField ">//GEN-BEGIN:|136-getter|0|136-preInit
    /**
     * Returns an initiliazed instance of horasExtrasTextField component.
     * @return the initialized component instance
     */
    public TextField getHorasExtrasTextField() {
        if (horasExtrasTextField == null) {//GEN-END:|136-getter|0|136-preInit
            // write pre-init user code here
            horasExtrasTextField = new TextField("Horas extras:", "", 32, TextField.ANY);//GEN-LINE:|136-getter|1|136-postInit
            // write post-init user code here
        }//GEN-BEGIN:|136-getter|2|
        return horasExtrasTextField;
    }
    //</editor-fold>//GEN-END:|136-getter|2|
    //</editor-fold>

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: horasReceberStringItem ">//GEN-BEGIN:|137-getter|0|137-preInit
    /**
     * Returns an initiliazed instance of horasReceberStringItem component.
     * @return the initialized component instance
     */
    public StringItem getHorasReceberStringItem() {
        if (horasReceberStringItem == null) {//GEN-END:|137-getter|0|137-preInit
            // write pre-init user code here
            horasReceberStringItem = new StringItem("Horas extras a receber:", "R$ 00,00");//GEN-LINE:|137-getter|1|137-postInit
            // write post-init user code here
        }//GEN-BEGIN:|137-getter|2|
        return horasReceberStringItem;
    }
    //</editor-fold>//GEN-END:|137-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: spacer5 ">//GEN-BEGIN:|138-getter|0|138-preInit
    /**
     * Returns an initiliazed instance of spacer5 component.
     * @return the initialized component instance
     */
    public Spacer getSpacer5() {
        if (spacer5 == null) {//GEN-END:|138-getter|0|138-preInit
            // write pre-init user code here
            spacer5 = new Spacer(16, 1);//GEN-LINE:|138-getter|1|138-postInit
            // write post-init user code here
        }//GEN-BEGIN:|138-getter|2|
        return spacer5;
    }
    //</editor-fold>//GEN-END:|138-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: calcularFeriasCommand ">//GEN-BEGIN:|139-getter|0|139-preInit
    /**
     * Returns an initiliazed instance of calcularFeriasCommand component.
     * @return the initialized component instance
     */
    public Command getCalcularFeriasCommand() {
        if (calcularFeriasCommand == null) {//GEN-END:|139-getter|0|139-preInit
            // write pre-init user code here
            calcularFeriasCommand = new Command("Calcular", Command.ITEM, 0);//GEN-LINE:|139-getter|1|139-postInit
            // write post-init user code here
        }//GEN-BEGIN:|139-getter|2|
        return calcularFeriasCommand;
    }
    //</editor-fold>//GEN-END:|139-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: salBrutoFeriasTextField ">//GEN-BEGIN:|141-getter|0|141-preInit
    /**
     * Returns an initiliazed instance of salBrutoFeriasTextField component.
     * @return the initialized component instance
     */
    public TextField getSalBrutoFeriasTextField() {
        if (salBrutoFeriasTextField == null) {//GEN-END:|141-getter|0|141-preInit
            // write pre-init user code here
            salBrutoFeriasTextField = new TextField("Sal\u00E1rio Bruto (em R$):", "", 32, TextField.ANY);//GEN-LINE:|141-getter|1|141-postInit
            // write post-init user code here
        }//GEN-BEGIN:|141-getter|2|
        return salBrutoFeriasTextField;
    }
    //</editor-fold>//GEN-END:|141-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: spacer6 ">//GEN-BEGIN:|142-getter|0|142-preInit
    /**
     * Returns an initiliazed instance of spacer6 component.
     * @return the initialized component instance
     */
    public Spacer getSpacer6() {
        if (spacer6 == null) {//GEN-END:|142-getter|0|142-preInit
            // write pre-init user code here
            spacer6 = new Spacer(16, 1);//GEN-LINE:|142-getter|1|142-postInit
            // write post-init user code here
        }//GEN-BEGIN:|142-getter|2|
        return spacer6;
    }
    //</editor-fold>//GEN-END:|142-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: valorFeriasStringItem ">//GEN-BEGIN:|143-getter|0|143-preInit
    /**
     * Returns an initiliazed instance of valorFeriasStringItem component.
     * @return the initialized component instance
     */
    public StringItem getValorFeriasStringItem() {
        if (valorFeriasStringItem == null) {//GEN-END:|143-getter|0|143-preInit
            // write pre-init user code here
            valorFeriasStringItem = new StringItem("Valor das f\u00E9rias:", "R$ 00,00");//GEN-LINE:|143-getter|1|143-postInit
            // write post-init user code here
        }//GEN-BEGIN:|143-getter|2|
        return valorFeriasStringItem;
    }
    //</editor-fold>//GEN-END:|143-getter|2|

    /**
     * Returns a display instance.
     * @return the display instance.
     */
    public Display getDisplay() {
        return Display.getDisplay(this);
    }

    /**
     * Exits MIDlet.
     */
    public void exitMIDlet() {
        switchDisplayable(null, null);
        destroyApp(true);
        notifyDestroyed();
    }

    /**
     * Called when MIDlet is started.
     * Checks whether the MIDlet have been already started and initialize/starts or resumes the MIDlet.
     */
    public void startApp() {
        if (midletPaused) {
            resumeMIDlet();
        } else {
            initialize();
            startMIDlet();
        }
        midletPaused = false;
    }

    /**
     * Called when MIDlet is paused.
     */
    public void pauseApp() {
        midletPaused = true;
    }

    /**
     * Called to signal the MIDlet to terminate.
     * @param unconditional if true, then the MIDlet has to be unconditionally terminated and all resources has to be released.
     */
    public void destroyApp(boolean unconditional) {
    }

}
